package com.hu.common.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName TreeDTO
 * @Description 树形结构DTO
 * @author 355760
 **/
@Data
public class TreeDTO implements Serializable {

    private static final long serialVersionUID = 1502028235559783724L;

    @ApiModelProperty(value = "Id", name = "id")
    private Long id;

    @ApiModelProperty(value = "名称(英文)", name = "name")
    private String name;

    @ApiModelProperty(value = "名称(中文)", name = "nameC")
    private String nameC;

    @ApiModelProperty(value = "父节点Id", name = "parentId")
    private Long parentId;

    @ApiModelProperty(value = "是否是叶子节点", name = "isLeaf")
    private Boolean isLeaf;

    @ApiModelProperty(value = "排序号", name = "sortNo")
    private Integer sortNo;

    @ApiModelProperty(value = "子节点集合", name = "children")
    private List<? extends TreeDTO> children;

}
